package net.sivashov.grailssample.ds

/**
 * @author LSivashov
 * @since 2/25/13
 */
class ContextHolder {
    private def static currentDatasourceName = new ThreadLocal<String>()

    def static getCurrentDatasourceName() {
        currentDatasourceName.get()
    }

    def static setCurrentDatasourceName(String dsName) {
        currentDatasourceName.set(dsName)
    }
}
